import Home from '../pages/Home';
import List from '../pages/List';
import Detail from '../pages/Detail';
import My from '../pages/My';
import Login from '../pages/Login';
import Cart from '../pages/Cart';

const routes = [{
    from: '/',
    to: '/home'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/list',
    component: List
  },
  {
    path: '/detail/:id',
    component: Detail
  },
  {
    path: '/cart',
    component: Cart,
    auth: true
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/my',
    component: My,
    auth: true
  }
];

export default routes;